import { getTheme } from './theme';

const MAP = {
  logo: { light: '/NexusGo.svg', dark: '/NexusGo-dark.svg' },
  message: { light: '/msg.svg', dark: '/msg-dark.svg' },
  theme: { light: '/mode-light.svg', dark: '/mode-dark.svg' },
  collapse: { light: '/top-left.svg', dark: '/top-left-dark.svg' },
  expand: { light: '/top-right.svg', dark: '/top-right-dark.svg' },
  avatarDefault: { light: '/person.svg', dark: '/person-dark.svg' },
};

export function getIconPath(name, theme) {
  const t = (theme || getTheme()) === 'dark' ? 'dark' : 'light';
  const v = MAP[name];
  if (!v) return '';
  return typeof v === 'string' ? v : (v[t] || v.light || '');
}
